package com.lin.manager.secure.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author linjiang
 * @date 2024/7/26
 * @fn
 */
@Getter
@AllArgsConstructor
public enum SecurityEnum {
    LOGIN_SUCCESS(10000, "登录成功"),
    LOGIN_FAIL(10001, "登录失败"),
    LOGIN_FAIL_CODE(10002, "验证码错误"),
    LOGOUT_FAIL(10003, "退出失败"),
    LOGIN_FAIL_USERNAME_PASSWORD(10004, "用户名和密码错误!"),
    LOGIN_FAIL_USER_DISABLE(10006, "用户被禁用!"),
    LOGIN_FAIL_USER_LOCKED(10007, "用户被锁定!"),
    LOGIN_FAIL_USER_EXPIRED(10008, "用户已过期!"),
    LOGIN_FAIL_TOKEN(10009, "token失效!"),
    LOGIN_FAIL_TOKEN_EXPIRED(100010, "token已过期!"),
    LOGIN_FAIL_TOKEN_NULL(100011, "token不能为空!"),
    ;

    private Integer code;
    private String desc;

}
